﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Clipper.Model.ViewModel;
using System.Collections.ObjectModel;
using Clipper.Model;

using Clipper.Model.EnumModel;
using Clipper.Model.DetectionModel;

namespace Global
{
    /// <summary>
    /// 数据显示支持
    /// </summary>
    public partial class ServiceProvider
    {
        #region 动画位置
        /// <summary>
       /// 传送条位置
       /// </summary>
        public static Point DeliverPosition
        {
            get;
            set;
        }
        /// <summary>
        /// 加试剂1位置
        /// </summary>
        public static Point Reagent1Position
        {
            get;
            set;
        }
        /// <summary>
        /// 加试剂2位置
        /// </summary>
        public static Point Reagent2Position
        {
            get;
            set;
        }
        /// <summary>
        /// 孵育
        /// </summary>
        public static Point IncubationBox
        {
            get;
            set;
        }
        /// <summary>
        /// 洗涤槽1
        /// </summary>
        public static Point WashTank1Position
        {
            get;
            set;
        }
        /// <summary>
        /// 洗涤槽2
        /// </summary>
        public static Point WashTank2Position
        {
            get;
            set;
        }
        /// <summary>
        /// 加底物
        /// </summary>
        public static Point SubstractPosition
        {
            get;
            set;
        }
        /// <summary>
        /// 恒温等待
        /// </summary>
        public static Point WaitReactionPosition
        {
            get;
            set;
        }
        /// <summary>
        /// 检测仓
        /// </summary>
        public static Point DetectionHoousePosition
        {
            get;
            set;
        }
        /// <summary>
        /// 回收仓
        /// </summary>
        public static Point RecyleBinPosition
        {
            get;
            set;
        }
        #endregion

        #region ViewModel    


        private static ConfigVM _configVM;
        /// <summary>
        /// 软件设置
        /// </summary>
        public static ConfigVM ConfigVM
        {
            get
            {
                return _configVM;
            }
        }
        private static MonitorVM _monnitor;
        /// <summary>
        /// 界面显示
        /// </summary>
        public static MonitorVM Monitor
        {
            get
            {
                return _monnitor;
            }
            set
            {
                _monnitor = value;
            }
        }

        private static VariableClass variableClass;//全局变量类

        public static VariableClass VariableClass
        {
            get
            {
                return variableClass;
            }

            set
            {
                variableClass = value;
            }
        }


        private static AlgorithmClass algorithmclass;  //算法公式类
        /// <summary>
        /// 算法公共类
        /// </summary>
        public static AlgorithmClass Algorithmclass
        {
            get
            {
                return algorithmclass;
            }

            set
            {
                algorithmclass = value;
            }
        }

        private static WorkSheetVM _WorkSheetVM;
        /// <summary>
        /// 试管架数据
        /// </summary>
        public static WorkSheetVM WorkSheetVM
        {
            get
            {
                return _WorkSheetVM;
            }
            set
            {
                _WorkSheetVM = value;
            }
        }

        static ReagentKitVM _reagentKitVM;
        /// <summary>
        /// 试剂设置信息
        /// </summary>
        public static ReagentKitVM ReagentKitVM
        {
            get
            {
                return _reagentKitVM;
            }
            set
            {
                _reagentKitVM = value;
            }
        }
        static StandardCurveVM _standardCurveVM;
        /// <summary>
        /// 标定曲线
        /// </summary>
        public static StandardCurveVM StandardCurveVM
        {
            get
            {
                return _standardCurveVM;
            }
            set
            {
                _standardCurveVM = value;
            }
        }


        #endregion


        // Anry
        public static ControlStatusEnum gStatusSlideA = ControlStatusEnum.IDLE;     // 滑轨A
        public static ControlStatusEnum gStatusSlideB = ControlStatusEnum.IDLE;     // 滑轨B
        public static ControlStatusEnum gStatusSlideC = ControlStatusEnum.IDLE;     // 滑轨C
        public static ControlStatusEnum gStatusSlideD = ControlStatusEnum.IDLE;     // 滑轨D
        public static ControlStatusEnum gStatusSlideE = ControlStatusEnum.IDLE;     // 滑轨E
        public static ControlStatusEnum gStatusSlideF = ControlStatusEnum.IDLE;     // 滑轨F
        public static ControlStatusEnum gStatusSlideH = ControlStatusEnum.IDLE;     // 反应条仓滑轨
        public static ControlStatusEnum gStatusSlideKx = ControlStatusEnum.IDLE;    // 孵育仓小车X轴
        public static ControlStatusEnum gStatusSlideKy = ControlStatusEnum.IDLE;    // 孵育仓小车Y轴
        public static int gInteralmSec = 100;                               // 间隔，单位：毫秒

    }
}
